package com.example.demo.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.Address;
import com.example.demo.entity.User;
import com.example.demo.mapper.UserMapper;
import com.example.demo.service.UserService;
import org.springframework.stereotype.Service;
import com.example.demo.service.adressService;
import com.example.demo.mapper.addressMapper;

import javax.annotation.Resource;

@Service
public class addresslmpl extends ServiceImpl<addressMapper, Address> implements adressService {
    @Resource
    public addressMapper addressMapper;
    public Boolean addaddress(String username,String name,String phone,String address)
    {
        addressMapper.addaddress(username, name, phone, address);
        return true;

    }

    public Object find_addaddress(String username)
    {
        return addressMapper.findaddress(username);
    }

    public Boolean delete_addaddress(Integer id)
    {
        addressMapper.delete(id);
        return true;
    }
}

